package com.example.entity.mysql;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-06-06
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
public class Workresource implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * UUID
     */
    @ApiModelProperty(value = "ID")
    @TableField("workResourceId")
    private String workResourceId;

    /**
     * 工单单别
     */
    @ApiModelProperty(value = "工单单别")
    @TableField("workSingle")
    private String workSingle;

    /**
     * 工单号
     */
    @ApiModelProperty(value = "工单号")
    @TableField("workNo")
    private String workNo;

    /**
     * 工序号
     */
    @ApiModelProperty(value = "工序号")
    @TableField("processNo")
    private String processNo;

    /**
     * 工艺号
     */
    @ApiModelProperty(value = "工艺号")
    @TableField("processId")
    private String processId;

    /**
     * 资源组ID
     */
    @ApiModelProperty(value = "资源组ID")
    @TableField("resourceGroupId")
    private Integer resourceGroupId;

    /**
     * 具体资源ID
     */
    @ApiModelProperty(value = "[末级]具体资源ID")
    @TableField("resourceId")
    private Integer resourceId;

    /**
     * 具体资源名称
     */
    @ApiModelProperty(value = "[末级]具体资源名称")
    @TableField(exist = false)
    private String resourceName;

    /**
     * 具体资源编号
     */
    @ApiModelProperty(value = "[末级]具体资源编号")
    @TableField(exist = false)
    private String resourceNO;

    /**
     * 排产日期
     */
    @ApiModelProperty(value = "排产日期")
    private String date;

    /**
     * 节拍
     */
    @ApiModelProperty(value = "节拍")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double beat;

    /**`
     * 定额
     */
    @ApiModelProperty(value = "定额")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double quota;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 创建日期
     */
    @ApiModelProperty(value = "创建日期")
    @TableField("createTime")
    private String createTime;

    /**
     * 生产线/机器UUID
     */
    @ApiModelProperty(value = "生产线/机器UUID")
    @TableField("productLineId")
    private String productLineId;

    @ApiModelProperty(value = "标准人数")
    @TableField("peopleNum")
    private Integer peopleNum;

    @ApiModelProperty(value = "带班组长編號")
    @TableField("leaderNo")
    private String leaderNo;


    @ApiModelProperty(value = "带班组长名稱")
    @TableField("leaderName")
    private String leaderName;

    /**
     * 资源组名称
     */
    @ApiModelProperty(value = "资源组名称")
    @TableField(exist = false)
    private String resourceGroupName;

    /**
     * 资源组编号
     */
    @ApiModelProperty(value = "资源组编号")
    @TableField(exist = false)
    private String resourceGroupNO;

    @ApiModelProperty(value = "资源类别ID")
    @TableField("resourceTypeId")
    private Integer resourceTypeId;

    @ApiModelProperty(value = "资源类别编号")
    @TableField(exist = false)
    private String resourceTypeNO;

    @ApiModelProperty(value = "资源类别名称")
    @TableField(exist = false)
    private String resourceTypeName;

//    @ApiModelProperty(value = "生产线/机器")
//    @TableField(exist = false)
//    private String productLine;

}
